package com.ruoyi.customer.mapper;

import java.util.List;
import com.ruoyi.customer.domain.CustomerDeviceBind;

/**
 * 用户设备绑定Mapper接口
 * 
 * @author luogongquan
 * @date 2024-09-09
 */
public interface CustomerDeviceBindMapper 
{
    /**
     * 查询用户设备绑定
     * 
     * @param id 用户设备绑定主键
     * @return 用户设备绑定
     */
    public CustomerDeviceBind selectCustomerDeviceBindById(Long id);

    /**
     * 查询用户设备绑定
     *
     * @param id 用户设备绑定主键
     * @return 用户设备绑定
     */
    public CustomerDeviceBind selectCustomerDeviceBindByDeviceId(Long id);

    /**
     * 查询用户设备绑定列表
     * 
     * @param customerDeviceBind 用户设备绑定
     * @return 用户设备绑定集合
     */
    public List<CustomerDeviceBind> selectCustomerDeviceBindList(CustomerDeviceBind customerDeviceBind);

    /**
     * 新增用户设备绑定
     * 
     * @param customerDeviceBind 用户设备绑定
     * @return 结果
     */
    public int insertCustomerDeviceBind(CustomerDeviceBind customerDeviceBind);

    /**
     * 修改用户设备绑定
     * 
     * @param customerDeviceBind 用户设备绑定
     * @return 结果
     */
    public int updateCustomerDeviceBind(CustomerDeviceBind customerDeviceBind);

    /**
     * 删除用户设备绑定
     * 
     * @param id 用户设备绑定主键
     * @return 结果
     */
    public int deleteCustomerDeviceBindById(Long id);

    /**
     * 批量删除用户设备绑定
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerDeviceBindByIds(Long[] ids);

    int batchInsertCustomerDeviceBind(List<CustomerDeviceBind> insertList);
}
